package cn.micro.eye.model.edit;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class MemberEdit implements Serializable {

    @NotBlank(message = "姓名不能为空")
    private String name;
    private Integer sex;
    @NotBlank(message = "请选择头像")
    private String headImgUrl;
    private String address;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birth;

}
